// 黑暗模式 样式定义
html.dark {
  #app {
    background-color: #000;
    .sidebar-container .theme-dark .scrollbar-wrapper .el-menu.el-menu--collapse .el-menu-item:hover {
      background: #4769ae !important;
    }
    .theme-dark {
      .el-menu-item:hover,
      .el-sub-menu__title:hover {
        color: #ffff;
        background: url('@/assets/images/mes_hover_bac.png') left center no-repeat !important;
        background-size: 87% !important;
        background-color: rgba(0, 0, 0, 0) !important;
      }
      .el-menu.el-menu--collapse {
        .el-sub-menu__title:hover {
          color: #ffff !important;
          background: none !important;
          background-color: #4769ae !important;
        }
        .el-menu-item.is-active {
          color: #ffff !important;
          background: none !important;
          background-color: #4769ae !important;
        }
        .el-sub-menu.is-active {
          color: #ffff !important;
          background: none !important;
          background-color: #4769ae !important;
        }
      }

      .el-menu-item,
      .el-sub-menu__title {
        color: #fff;
      }
    }

    .apps-cont,
    .items,
    .funcs-cont,
    .navigations-cont,
    .shop-cont {
      background-color: #1c1f29;
    }

    .ke-indx-sm-title,
    .ke-indx-title {
      color: #fff;
    }

    .ke-indx-title {
      border-bottom-color: #252937;
    }
    .qushitu {
      background-color: #11141d;
    }
    .list-items .item {
      background-color: #252937;
    }
    .shop-items {
      background-color: #11141d;
    }
    .shop-time {
      background: #1c1f29;
      color: #fff;
    }
    .funs-list .el-col {
      color: #fff;
    }
    .navbar {
      background-color: #1c1f29;
    }
  }
  .nest-menu {
    .el-menu-item:hover,
    .el-menu-item.is-active {
      background-color: #4769ae !important;
      color: #fff;
    }
    .el-menu-item {
      color: #fff;
    }
    .el-sub-menu {
      .el-sub-menu__title {
        color: #fff;
      }
      .el-sub-menu__title:hover {
        background-color: #4769ae;
        color: #fff;
      }
    }
    .el-sub-menu.is-active {
      .el-sub-menu__title {
        background-color: #4769ae;
        color: #fff;
      }
    }
  }
  .el-menu.el-menu--collapse {
    .el-menu-item.is-active,
    .el-menu-item:hover {
      background: #4769ae !important;
    }
  }
  .batching {
    background-color: #1c1f29;
    color: #fff;
  }

  .el-card {
    border: none;
    border-radius: 8px 8px 8px 8px;
    background-color: #1c1f29;
  }

  .el-table thead tr {
    background-color: #282d3d;
  }
  .el-table tr {
    background-color: #1c1f29;
  }
  .el-table td.el-table__cell,
  .el-table th.el-table__cell.is-leaf,
  .el-card__header {
    border-bottom: 1px solid #282b35 !important;
  }
  .el-table__inner-wrapper::before {
    background-color: #282b35;
  }

  .result-page {
    background-color: #1c1f29;
  }
  .el-table__header-wrapper tr th.el-table-fixed-column--left {
    background-color: #282d3d !important;
  }
}

// 明亮模式 样式定义
html.light {
  #app {
    background-color: #f2f5fc;
    .el-table__header-wrapper tr th.el-table-fixed-column--left {
      background-color: #f4f6fb !important;
    }
    .theme-dark {
      .el-menu-item.is-active {
        color: #fff;
      }
      .el-menu-item:hover,
      .el-sub-menu__title:hover {
        color: #ffff !important;
        background: url('@/assets/images/mes_hover_bac.png') left center no-repeat !important;
        background-size: 87% !important;
        background-color: rgba(0, 0, 0, 0) !important;
      }
      .el-menu.el-menu--collapse {
        .el-sub-menu__title:hover {
          color: #ffff !important;
          background: none !important;
          background-color: #1a4398 !important;
        }
        .el-sub-menu.is-active {
          color: #ffff !important;
          background: none !important;
          background-color: #1a4398 !important;
          .el-sub-menu__title {
            color: #fff !important;
          }
        }
      }
    }

    .apps-cont,
    .items,
    .funcs-cont,
    .navigations-cont,
    .shop-cont {
      background-color: #fff;
    }

    .el-menu.el-menu--collapse {
      .el-menu-item.is-active,
      .el-menu-item:hover {
        background: #1a4398 !important;
      }
    }
  }
  .nest-menu {
    .el-menu-item:hover,
    .el-menu-item.is-active {
      background-color: #1a4398 !important;
      color: #fff;
    }
    .el-sub-menu {
      .el-sub-menu__title {
        color: #333;
      }
      .el-sub-menu__title:hover {
        background-color: #1a4398;
        color: #fff;
      }
    }
    .el-sub-menu.is-active {
      .el-sub-menu__title {
        background-color: #1a4398;
        color: #fff;
      }
    }
  }
  .batching {
    background-color: #ffffff;
    color: #333;
  }

  .el-card {
    border: none;
    border-radius: 8px 8px 8px 8px;
  }

  .el-table thead tr {
    background-color: #f4f6fb;
  }
  .el-table td.el-table__cell,
  .el-table th.el-table__cell.is-leaf {
    border-bottom: 1px solid #f1f1f1 !important;
  }
  .result-page {
    background-color: #fff;
  }
}

// 默认通用 样式
html {
  // 页面 底部信息样式 start
  .yy-copy-right {
    margin: 10px 0px 24px;
    div {
      text-align: center;
      color: #999999;
      font-size: 14px;
      margin: 8px 0px;
      span {
        display: inline-block;
        margin: 0px 20px;
      }
    }
  }
  // 页面 底部信息样式 end

  // 搜索模块 卡片样式 调整 start
  .yy-search-form {
    .el-card__body {
      padding: 20px 20px 5px 20px !important;
    }
  }
  // 搜索模块 卡片样式 调整 end

  // 表格 父元素 卡片全屏样式定义 start
  .yy-table-card-box-fiexd {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 1002;
  }
  // 表格 父元素 卡片全屏样式定义 end

  // 表单弹出窗口 和抽屉弹窗 样式修改  start
  .el-dialog {
    border-radius: 8px 8px 8px 8px !important;
    overflow: hidden;
  }
  .el-dialog__header {
    padding: 16px 20px !important;
    background: url('@/assets/images/dialog_header_bac.png') no-repeat center center;
    background-size: cover;
    margin-right: 0px !important;
    color: #fff;
    .el-dialog__title,
    .el-dialog__headerbtn .el-dialog__close {
      color: #fff;
    }
  }

  .el-drawer__header {
    background: url('@/assets/images/dialog_header_bac.png') no-repeat center center;
    background-size: cover;
    margin-bottom: 10px !important;
    padding: 16px 20px !important;
    .el-drawer__title,
    .el-drawer__close-btn {
      color: #fff;
    }
  }

  .el-dialog,
  .el-drawer {
    .el-form-item--default {
      margin-bottom: 40px;
    }
  }
  // 表单弹出窗口 和抽屉弹窗 样式修改  end

  // 弹窗 引起的页面body宽度变化bug修复 start
  body {
    width: 100% !important;
  }
  // 弹窗 引起的页面body宽度变化bug修复 start

  // 自定义提示弹窗 样式 start
  .el-message.yy-message-success {
    background-color: #f4fcf5;
    border: none;
    height: 50px;
    min-width: 300px;
    .el-message__content {
      color: #333;
    }
  }

  .el-message.yy-message-error {
    background-color: #fff5f5;
    border: none;
    height: 50px;
    min-width: 300px;
    .el-message__content {
      color: #333;
    }
  }
  .el-message.yy-message-warning {
    background-color: #fff9f1;
    border: none;
    height: 50px;
    min-width: 300px;
    .el-message__content {
      color: #333;
    }
  }
  .el-message.yy-message-gonggao {
    background-color: #f2f8ff;
    border: 1px solid #3a85ff;
    width: 800px;
    padding-right: 100px;
    .see-gonggao {
      position: absolute;
      right: -620px;
      top: 0px;
    }
    .unsee-gonggao {
      position: absolute;
      right: -660px;
      top: 0px;
    }
  }
  .el-message-box__header {
    background: url('@/assets/images/mesBox_title_bac.png') no-repeat center center;
    background-size: cover;

    .el-message-box__title,
    .el-message-box__headerbtn .el-message-box__close {
      color: #fff;
    }
  }

  .el-message-box {
    border: none !important;
    border-radius: 8px !important;
  }
  .el-message-box__content {
    padding: 30px !important;
  }

  .el-message-icon--info {
    width: auto !important;
  }
  // 自定义提示弹窗 样式 end

  // tabs 头部切换样式 修改
  .yy-tabs {
    .el-tabs__nav-wrap::after {
      height: 1px;
    }
    .el-tabs__active-bar {
      background-color: #2a51a1;
    }
    .el-tabs__item.is-active {
      color: #2a51a1;
    }
  }
}
.el-table__header-wrapper tr th.el-table-fixed-column--right {
  background-color: #f4f6fb !important;
}
